package day03;

import java.util.Scanner;

/**
 * @author yzg
 * @desc TODO
 * @date 2025/4/9
 */
public class Test01 {
    public static void main(String[] args) {
        int price = 800;//飞机票票价
        System.out.print("请输入哪天订票(格式为xx.xx,月份(1~12)，日(01~31)：");
        Scanner sc = new Scanner(System.in);
        double d = sc.nextDouble();//日期
        if (d >= 1.01 && d <= 1.03 ||
            d >= 5.01 && d <= 5.03 ||
            d >=10.01 && d <= 10.07){
            System.out.println("飞机票价为"+price+"元" );
        }else {
            System.out.println("飞机票价为"+price*0.8+"元");
        }
    }
}
